package ricky.loader.protocol.da
{
	import flash.display.BitmapData;
	import flash.utils.Dictionary;
	
	import ricky.Interface.IDispose;
	import ricky.animate.AnimScene;

	/**
	 * da文件解码数据实体
	 */
	public class DaData implements IDispose
	{
		public function DaData()
		{
			texttures=new Dictionary();
			sceneConfigs=new Dictionary();
			marixScenes=new Array();
		}
		
		public var begin:String;		
		/**
		 * x偏移
		 */
		public var offx:Number;
		/**
		 * y偏移
		 */
		public var offy:Number;
		
		/**
		 * textureNames 材质数组
		 */
		public var textureNames:Array;//材质数组
		
		/**
		 * 材质数据 DaTextureConfig 实体类
		 */
		public var texttures:Dictionary;//数据
		
		/**
		 * textureLength 材质数量
		 */
		public var textureLength:int;//长度
		
		/**
		 * 场景数组
		 */
		public var sceneNames:Array;
		
		/**
		 * 场景数量
		 */
		public var sceneNameLength:int;
		
		/**
		 * 场景动画资源 DaSceneConfig实体类集合
		 */
		public var sceneConfigs:Dictionary;
		
		/**
		 * 镜像的场景
		 */
		public var marixScenes:Array;
		
		public function dispose():void
		{
			for each(var k:BitmapData in texttures)
			{
				var bmpSource:BitmapData=k;
				bmpSource.dispose();
			}
			
			texttures=null;
			sceneConfigs=null;
			marixScenes=null;
		}
		
	}
}